# -*- coding:utf-8 -*-


# ####################
# RedisConfig
# ####################
LOCAL_HOST = '127.0.0.1'
LOCAL_PROT = 7006
LOCAL_PASSWORD = ''
LOCAL_DB = 0
LOCAL_MAX_CONN = 10000
LOCAL_TIMEOUT = 2
COMMON_SUB_KEYS = "ws:exchange:sub:keys"

# ####################
# PlatConfig
# ####################
BASE_EXCHANGE_NAME = "xt"
BASE_EXCHANGE_MARKETS_KEY = "{}:markets".format(BASE_EXCHANGE_NAME)
BASE_EXCHANGE_MARKETSCONFIG_KEY = "{}:markets:{}:config"
BASE_EXCHANGE_MARKETMATCH_KEY = "xt:exchange:{}:{}"


# ####################
# SubscribeMarket
# ####################
SUSCRIBEMAREKET_EXCHANGE_KEYS = "{exchange}:markets"


# ####################
# Monitor周期
# ####################
INTERVAL = 20

# ####################
# Base黑名单市场
# ####################
BASE_PATTERN = "base"
BASE_BLACKLIST = []
BASE_PATTERN_KEY = "{exchange}:{market}:depth"

# ####################
# Binance黑名单市场
# ####################
BINANCE_PATTERN = "binance"
BINANCE_BLACKLIST = [
    "ada_usdc", "ae_btc", "any_usdt", "atom_usdc", "bch_usdc", "bcpt_btc", "bnb_usdc", "btc_pax",
    "btc_tusd", "btc_usdc", "btt_btc", "btt_usdt", "bzrx_usdt", "chat_btc", "dai_usdt", "dgd_btc",
    "eos_usdc", "eth_pax", "eth_tusd", "eth_usdc", "eth_ust", "ez_eth", "gxs_btc", "gxs_usdt", "hc_btc",
    "hc_usdt", "keep_usdt", "lend_usdt", "link_usdc", "lend_usdt", "link_usdc", "ltc_usdc", "luna_ust",
    "nu_usdt", "pax_usdt", "rcn_btc", "rdn_btc", "sc_btc", "sol_usdc", "trx_usdc", "tusd_usdt", "usdc_usdt",
    "ust_btc", "ust_usdt", "xem_eth", "xrp_usdc", "zec_usdc",
]


# ####################
# FTX黑名单市场
# ####################
FTX_PATTERN = "ftx"
FTX_BLACKLIST = []


# ####################
# XTFuture黑名单市场
# ####################
XTFUTURE_PATTERN = "xtv3future"
XTFUTURE_BLACKLIST = []
XTFUTURE_PATTERN_KEY = "{exchange}:{market}:markPrice"


# ####################
# XTFutureUser黑名单市场
# ####################
XTFUTUREUSER_PATTERN = "xtv3userfuture"
XTFUTUREUSER_BLACKLIST = []
XTFUTUREUSER_PATTERN_KEY = "{exchange}:sub_user:{market}:ping"
